<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
          name='viewport'/>
    <title>教务综合管理系统</title>
    <link rel="stylesheet" type="text/css" th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/demo.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/ready.css}">
    <script type="text/javascript" th:src="@{/js/Vue.js}"></script>
    <style>
        [v-cloak] {
            display: none !important;
        }

        .mychild>input {
            margin: 5px;
        }

        input,
        textarea {
            border: none;
            width: 100%;
            height: 100%;
            background: rgba(210, 205, 212, 0.45);
            resize: none;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <!--    引入公共页面 public-index。html 的模块-->
    <div th:replace="teacher/public-teacher-index :: header"></div>
    <div th:replace="teacher/public-teacher-index :: left"></div>

    <div class="main-panel">
        <div class="content">
            <div class="row">
                <!--<div class="col-md-1"></div>-->
                <div class="col-md-12">
                    <div class="card" style="width:100%;height:100%;">
                        <div class="card-body" id="app">

                            <div>
                                <div align="center">
                                    <h3>教师学期业务情况登记表</h3>
                                </div>
                                <div align="center">
                                    部门 {{businessDTO.institute}} 教研室 {{businessDTO.section}}
                                    <input @change="update" type="number" v-model="copyDTO.year" style="width: auto">
                                    年
                                    <select @change="update" v-model="copyDTO.trem">
                                        <option>上</option>
                                        <option>下</option>
                                    </select>
                                    学期
                                </div>
                                <table id="table1" style="table-layout:fixed; overflow:hidden;width: 90%;text-align: center" border="1"
                                       bgcolor="#fff" cellspacing="0" align="center">
                                    <tr>
                                        <td>
                                            <b>姓名</b>
                                        </td>
                                        <td>
                                            {{teacher.name}}
                                        </td>
                                        <td>
                                            <b>性别</b>
                                        </td>
                                        <td colspan="2">
                                            {{teacher.gender}}
                                        </td>
                                        <td>
                                            <b>职称</b>
                                        </td>
                                        <td>
                                            {{teacher.duty}}
                                        </td>
                                        <td>
                                            <b>职务</b>
                                        </td>
                                        <td colspan="2">
                                            {{teacher.administrativeDuty}}
                                        </td>
                                        <td>
                                            <b>出生年月</b>
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.dateOfBirth}}
                                        </td>
                                    </tr>

                                    <tr>
                                        <td :rowspan="businessDTO.completeWorkload.length+2">
                                            <b>
                                                完<br>
                                                成<br>
                                                教<br>
                                                学<br>
                                                工<br>
                                                作<br>
                                                量<br>
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>任教课程名称</b>
                                        </td>
                                        <td colspan="3">
                                            <b>班级</b>
                                        </td>
                                        <td>
                                            <b>理论课时</b>
                                        </td>
                                        <td>
                                            <b>指导实验</b>
                                        </td>
                                        <td>
                                            <b>指导设计</b>
                                        </td>
                                        <td>
                                            <b>指导实习</b>
                                        </td>
                                        <td>
                                            <b>指导综合实验</b>
                                        </td>
                                        <td colspan="2">
                                            <b>总课时</b>
                                        </td>
                                    </tr>

                                    <tr v-for="(i,index) in businessDTO.completeWorkload" :key="index">
                                        <td colspan="2">
                                            {{businessDTO.completeWorkload[index].courseName}}
                                        </td>
                                        <td colspan="3">
                                            {{businessDTO.completeWorkload[index].classes}}
                                        </td>
                                        <td>
                                            {{businessDTO.completeWorkload[index].theoryClass}}
                                        </td>
                                        <td>
                                            {{businessDTO.completeWorkload[index].guidingExperiment}}
                                        </td>
                                        <td>
                                            {{businessDTO.completeWorkload[index].guidingDesign}}
                                        </td>
                                        <td>
                                            {{businessDTO.completeWorkload[index].guidingInternship}}
                                        </td>
                                        <td>
                                            {{businessDTO.completeWorkload[index].guideComprehensiveExperiment}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.completeWorkload[index].totalClass}}
                                        </td>
                                    </tr>


                                    <tr>
                                        <td colspan="4">
                                            <b>工作量合计</b>
                                        </td>
                                        <td colspan="8">
                                            {{businessDTO.totalWorkload}}
                                        </td>

                                    </tr>

                                    <!--            学术成果-->
                                    <tr>
                                        <td :rowspan="
                    businessDTO.academicAchievements.textBook.length
                    +businessDTO.academicAchievements.paper.length
                    +businessDTO.academicAchievements.projectOrTopics.length
                    +3
                    "
                                        >
                                            <b>学<br>术<br>成<br>果</b>
                                        </td>
                                        <td colspan="2">
                                            <b>编写教材名称</b>
                                        </td>
                                        <td colspan="4">
                                            <b>出版单位及时间</b>
                                        </td>
                                        <td colspan="1">
                                            <b>主编（审）</b>
                                        </td>
                                        <td colspan="1">
                                            <b>惨编（审）</b>
                                        </td>
                                        <td colspan="1">
                                            <b>规划教材</b>
                                        </td>
                                        <td colspan="1">
                                            <b>校本教材</b>
                                        </td>
                                        <td colspan="2">
                                            <b>其它</b>
                                        </td>
                                    </tr>

                                    <tr v-for="(i,index) in businessDTO.academicAchievements.textBook" :key="index+100">
                                        <td colspan="2">
                                            {{businessDTO.academicAchievements.textBook[index].textbookName}}
                                        </td>
                                        <td colspan="4">
                                            {{businessDTO.academicAchievements.textBook[index].publishingUnitAndTime}}
                                        </td>
                                        <td>
                                            {{businessDTO.academicAchievements.textBook[index].chiefEditor}}
                                        </td>
                                        <td>
                                            {{businessDTO.academicAchievements.textBook[index].jointlyEdited}}
                                        </td>
                                        <td>
                                            {{businessDTO.academicAchievements.textBook[index].planningTextbook}}
                                        </td>
                                        <td>
                                            {{businessDTO.academicAchievements.textBook[index].schoolBasedTextbook}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.academicAchievements.textBook[index].other}}
                                        </td>

                                    </tr>



                                    <tr>
                                        <td colspan="3">
                                            <b>论文篇名</b>
                                        </td>
                                        <td colspan="6">
                                            <b>发表（获奖）情况</b>
                                        </td>
                                        <td colspan="1">
                                            <b>级别</b>
                                        </td>
                                        <td colspan="2">
                                            <b>本人排名</b>
                                        </td>
                                    </tr>

                                    <tr v-for="(i,index) in businessDTO.academicAchievements.paper" :key="index+200">
                                        <td colspan="3">
                                            {{businessDTO.academicAchievements.paper[index].paperTitle}}
                                        </td>
                                        <td colspan="6">
                                            {{businessDTO.academicAchievements.paper[index].publishingSituation}}
                                        </td>
                                        <td colspan="1">
                                            {{businessDTO.academicAchievements.paper[index].level}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.academicAchievements.paper[index].ranking}}
                                        </td>
                                    </tr>



                                    <tr>
                                        <td colspan="3">
                                            <b>
                                                主持或参加课题/项目
                                                名称
                                            </b>
                                        </td>
                                        <td colspan="6">
                                            <b>批准（合作）单位</b>
                                        </td>
                                        <td colspan="1">
                                            <b>类别</b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                本人
                                                角色
                                            </b>
                                        </td>
                                    </tr>

                                    <tr v-for="(i,index) in businessDTO.academicAchievements.projectOrTopics" :key="index+300">
                                        <td colspan="3">
                                            {{businessDTO.academicAchievements.projectOrTopics[index].hostSubject}}
                                        </td>
                                        <td colspan="6">
                                            {{businessDTO.academicAchievements.projectOrTopics[index].cooperationUnit}}
                                        </td>
                                        <td colspan="1">
                                            {{businessDTO.academicAchievements.projectOrTopics[index].category}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.academicAchievements.projectOrTopics[index].myRole}}
                                        </td>
                                    </tr>



                                    <!--            获奖情况-->
                                    <tr>
                                        <td colspan="4">
                                            <b>获奖情况</b>
                                        </td>
                                        <td colspan="9">
                                            <span v-html="businessDTO.awards"></span>
                                        </td>
                                    </tr>

                                    <!--            参加学术团体情况-->
                                    <tr>
                                        <td colspan="4">
                                            <b>
                                                参加学术团体情况
                                            </b>
                                        </td>
                                        <td colspan="9">
                                            {{businessDTO.academicGroup}}
                                        </td>
                                    </tr>

                                    <tr>
                                        <td colspan="4">
                                            <b>
                                                继续教育情况
                                            </b>
                                        </td>
                                        <td colspan="9">
                                            {{businessDTO.continuingEducation}}
                                        </td>
                                    </tr>

                                    <!--            担任其他工作情况-->
                                    <tr>
                                        <td colspan="4">
                                            <b>
                                                担任其他工作情况
                                            </b>
                                        </td>
                                        <td colspan="9">
                                            {{businessDTO.otherJobs}}
                                        </td>
                                    </tr>

                                    <tr>
                                        <td colspan="4">
                                            <b>
                                                病休情况
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.sick}}
                                        </td>
                                        <td colspan="4">
                                            <b>
                                                事假情况
                                            </b>
                                        </td>
                                        <td colspan="3">
                                            {{businessDTO.leave}}
                                        </td>
                                    </tr>

                                    <tr>
                                        <td colspan="3" rowspan="2">
                                            <b>
                                                教学纪律
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                迟到次数
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                早退次数
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                调课次数
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                缺课次数
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                违纪扣分
                                            </b>
                                        </td>
                                    </tr>

                                    <tr>

                                        <td colspan="2">
                                            {{businessDTO.beLate}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.leaveEarly}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.tuneClass}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.missingClass}}
                                        </td>
                                        <td colspan="2">
                                            {{businessDTO.disciplinaryPenalty}}
                                        </td>
                                    </tr>

                                    <tr>
                                        <td rowspan="3">
                                            <b>
                                                学<br>
                                                期<br>
                                                考<br>
                                                核<br>
                                            </b>
                                        </td>
                                        <td colspan="2">
                                            <b>
                                                <br>
                                                教<br>
                                                期<br>
                                                室<br>
                                                意<br>
                                                见<br>
                                                <br>
                                            </b>
                                        </td>
                                        <td colspan="10">
                                            <br>
                                            <br>
                                            <br>
                                            <div style="text-align: right; margin-bottom: -60px ; margin-right: 50px">
                                                年&nbsp&nbsp&nbsp&nbsp&nbsp 月&nbsp&nbsp&nbsp&nbsp&nbsp 日&nbsp&nbsp （盖章）&nbsp&nbsp&nbsp&nbsp
                                            </div>
                                        </td>
                                    </tr>

                                    <tr>

                                        <td colspan="2">
                                            <b>
                                                <br>
                                                教<br>
                                                期<br>
                                                室<br>
                                                意<br>
                                                见<br>
                                                <br>
                                            </b>
                                        </td>
                                        <td colspan="10">
                                            <br>
                                            <br>
                                            <br>
                                            <div style="text-align: right; margin-bottom: -60px ; margin-right: 50px">
                                                年&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 月&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 日&nbsp&nbsp
                                                （盖章）&nbsp&nbsp&nbsp&nbsp
                                            </div>
                                        </td>
                                    </tr>

                                    <tr>

                                        <td colspan="2">
                                            <b>
                                                <br>
                                                学<br>
                                                校<br>
                                                意<br>
                                                见<br>
                                                <br>
                                            </b>
                                        </td>
                                        <td colspan="10">
                                            <br>
                                            <br>
                                            <br>
                                            <div style="text-align: right; margin-bottom: -40px ; margin-right: 50px">
                                                年&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 月&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 日&nbsp&nbsp
                                                （盖章）&nbsp&nbsp&nbsp&nbsp
                                            </div>
                                        </td>
                                    </tr>

                                </table>
                            </div>

                            <div align="center">
                                <button @click="print">打印</button>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" th:src="@{/webjars/jquery/1.9.1/jquery.js}"></script>
<script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/js/Apexchart.js}"></script>
<script type="text/javascript" th:src="@{/asserts/js/ready.min.js}"></script>
<script type="text/javascript" th:src="@{/js/axios.js}"></script>

<script type="text/javascript" th:src="@{/js/showtable/businessView.js}"></script>
</html>